package com.syys.repository;

import com.syys.domain.Customer;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * @Classname CustomerRepository
 * @Description TODO
 * @Date 2021/6/11 15:05
 * @Created by ys
 */
public interface CustomerRepository extends MongoRepository<Customer, String> {

    Customer findByFirstName(String firstName);

    List<Customer> findByLastName(String lastName);

}
